<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>Git代码搜索 - 仿百度主页</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="style.css">
  </head>
<body>
  <div class="baidu-header">
    <div class="baidu-logo">Git代码搜索</div>
    <div style="position: absolute; top: 30px; right: 40px;">
      <a id="config-btn" title="配置管理" style="background: none; border: none; cursor: pointer; display:inline-block;" href="config.html">
        <svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h.09A1.65 1.65 0 0 0 11 3.09V3a2 2 0 1 1 4 0v.09c.38.13.73.36 1 .68.27.32.46.7.51 1.13.05.43-.06.87-.33 1.18l-.06.06a1.65 1.65 0 0 0-.33 1.82c.13.38.36.73.68 1 .32.27.7.46 1.13.51.43.05.87-.06 1.18-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82c.13.38.36.73.68 1 .32.27.7.46 1.13.51.43.05.87-.06 1.18-.33z"/></svg>
      </a>
    </div>
  </div>
  <div class="search-bar">
    <div class="custom-select">
      <div class="select-header">
        <span class="selected-text">全部</span>
        <span class="arrow">▼</span>
      </div>
      <div class="select-options">
        <div class="option" data-value="all">
          <span class="checkmark"></span>
          全部
        </div>
      </div>
    </div>
    <input type="text" id="searchInput" class="search-input" placeholder="请输入代码关键字、文件名或项目名...">
    <button id="searchBtn" class="search-btn">搜一下</button>
    <div id="loadingIndicator" style="display: none; margin-left: 10px; color: #666; font-size: 16px; align-self: center;">搜索中...</div>
  </div>
  <div id="result"></div>
</body>
</html>
<script src="script.js"></script>